package com.dong.design.decorator;

/**
 * 抽象装饰类
 *
 * @author jianyang206881
 * @date 2018/6/11
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        decoratedShape.draw();
    }

}
